package task13;

import java.util.HashMap;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/27 10:41
 * @description:
 */
public class DictionayDaoHashMap implements DictionayDao{
 HashMap<String ,String > hashMap=new HashMap<String ,String >();
  @Override
  public void add(MyDictionay d) {

  }

  @Override
  public String query(String english) {
    //判断集合中是否包含该KEY

      if(hashMap.containsKey(english)){
        return hashMap.get(english);
      }

    return null;
  }
}
